<table id="groups_flex" style="display:none"></table>
<script type="text/javascript">
		$("#groups_flex").flexigrid({
			url: "modules/groups/gd.php",
			dataType:"xml",
			colModel : [
				{display: "Mã nhóm", name : "ma", width : 100, sortable : true, align: "center"},
				{display: "Tên nhóm", name : "ten", width : 400, sortable : true, align: "left"}
				],
			searchitems : [
				{display: "Tên nhóm", name : "ten", isdefault: true}
				],
			sortname: "ten",
			sortorder: "asc",
			usepager: true,
			useRp: true,
			rp: 15,
			showTableToggleBtn: true,
			width: 500,
			height: 200,
			singleSelect:true,
			onSuccess:function(){
				if(groups_id!="")
				{
					$("#groups_flex #row"+groups_id).addClass("trSelected");
				}
				else $("#groups_flex tr:last").addClass("trSelected");
			}
		});
</script>
